projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961a908
)
(move_it_past_eol): New function.
author
Gerd Moellmann
<gerd@gnu.org>
Wed, 3 Jan 2001 13:49:02 +0000
(13:49 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Wed, 3 Jan 2001 13:49:02 +0000
(13:49 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 482a704aee2968aeca140586fbf5c443169c4a90..3e9790d1b8e1e98696c092a39c111199d5050607 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-5082,6
+5082,20
@@
move_it_vertically (it, dy)
}
+/* Move iterator IT past the end of the text line it is in. */
+
+void
+move_it_past_eol (it)
+ struct it *it;
+{
+ enum move_it_result rc;
+
+ rc = move_it_in_display_line_to (it, Z, 0, MOVE_TO_POS);
+ if (rc == MOVE_NEWLINE_OR_CR)
+ set_iterator_to_next (it, 0);
+}
+
+
#if 0 /* Currently not used. */
/* Return non-zero if some text between buffer positions START_CHARPOS